Skip to content

Enable Kotlin warnings as errors (#58390) - #58390

Closed
javache wants to merge 1 commit into
react:mainfrom
javache:export-D119096917
Closed

Enable Kotlin warnings as errors (#58390)#58390
javache wants to merge 1 commit into
react:mainfrom
javache:export-D119096917

Conversation

@javache

@javache javache commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary:

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable warnings_as_errors_k22 by default for rn_android_library and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119096917

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 7, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Sep 7, 2026
@meta-codesync

meta-codesync Bot commented Sep 7, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119096917.

javache added a commit to javache/react-native that referenced this pull request Sep 7, 2026
Summary:
Pull Request resolved: react#58390

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable `warnings_as_errors_k22` by default for `rn_android_library` and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Differential Revision: D119096917
@meta-codesync meta-codesync Bot changed the title Enable Kotlin warnings as errors Enable Kotlin warnings as errors (#58390) Sep 7, 2026

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

javache added a commit to javache/react-native that referenced this pull request Sep 8, 2026
Summary:
Pull Request resolved: react#58390

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable `warnings_as_errors_k22` by default for `rn_android_library` and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119096917
@javache
javache force-pushed the export-D119096917 branch 2 times, most recently from c7e29f4 to 03613dc Compare September 8, 2026 12:14
javache added a commit to javache/react-native that referenced this pull request Sep 8, 2026
Summary:
Pull Request resolved: react#58390

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable `warnings_as_errors_k22` by default for `rn_android_library` and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119096917
javache added a commit to javache/react-native that referenced this pull request Sep 9, 2026
Summary:
Pull Request resolved: react#58390

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable `warnings_as_errors_k22` by default for `rn_android_library` and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119096917
Summary:
Pull Request resolved: react#58390

K2 warnings can otherwise accumulate unnoticed across React Native Android targets. Enable `warnings_as_errors_k22` by default for `rn_android_library` and clean up the warnings exposed by the RNTester dependency graph. Generated-source targets opt out where warnings cannot be fixed in checked-in source.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D119096917
@meta-codesync meta-codesync Bot closed this in eba7f28 Sep 9, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 9, 2026
@meta-codesync

meta-codesync Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request has been merged in eba7f28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants